package single;

public class Connection {
    private static int createCount = 0;
    public int connectId;

    Connection() {
        Connection.createCount++;
        connectId = createCount;
    }

    @Override
    public String toString() {
        return "Connection{" + "connectId=" + connectId + '}';
    }

    public int getConnectId() {
        return connectId;
    }

    public void setConnectId(int connectId) {
        this.connectId = connectId;
    }
}
